package main

import (
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/orm"
	"servermg/log"
	"servermg/models"
	_ "servermg/routers"
)

func init() {
	models.RegisterDB()
	orm.RunSyncdb("default", false, true)
}
func main() {
	log_level, _ := beego.AppConfig.Int("log_level")
	log.SetLevel(log_level)
	beego.Run()
}
